<?php
$tdatabrcs_report=array();
	$tdatabrcs_report[".NumberOfChars"]=80; 
	$tdatabrcs_report[".ShortName"]="brcs_report";
	$tdatabrcs_report[".OwnerID"]="";
	$tdatabrcs_report[".OriginalTable"]="brcs";


	
//	field labels
$fieldLabelsbrcs_report = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsbrcs_report["English"]=array();
	$fieldToolTipsbrcs_report["English"]=array();
	$fieldLabelsbrcs_report["English"]["id"] = "Id";
	$fieldToolTipsbrcs_report["English"]["id"] = "";
	$fieldLabelsbrcs_report["English"]["bank_id"] = "Bank";
	$fieldToolTipsbrcs_report["English"]["bank_id"] = "";
	$fieldLabelsbrcs_report["English"]["account_id"] = "Account";
	$fieldToolTipsbrcs_report["English"]["account_id"] = "";
	$fieldLabelsbrcs_report["English"]["ra_id"] = "Regional Authority";
	$fieldToolTipsbrcs_report["English"]["ra_id"] = "";
	$fieldLabelsbrcs_report["English"]["signature"] = "Signature";
	$fieldToolTipsbrcs_report["English"]["signature"] = "";
	$fieldLabelsbrcs_report["English"]["designation"] = "Designation";
	$fieldToolTipsbrcs_report["English"]["designation"] = "";
	$fieldLabelsbrcs_report["English"]["office_address"] = "Office Address";
	$fieldToolTipsbrcs_report["English"]["office_address"] = "";
	$fieldLabelsbrcs_report["English"]["residential_address"] = "Residential Address";
	$fieldToolTipsbrcs_report["English"]["residential_address"] = "";
	$fieldLabelsbrcs_report["English"]["place"] = "Place";
	$fieldToolTipsbrcs_report["English"]["place"] = "";
	$fieldLabelsbrcs_report["English"]["brc_date"] = "Date";
	$fieldToolTipsbrcs_report["English"]["brc_date"] = "";
	$fieldLabelsbrcs_report["English"]["invoice_no"] = "Invoice No";
	$fieldToolTipsbrcs_report["English"]["invoice_no"] = "";
	$fieldLabelsbrcs_report["English"]["invoice_date"] = "Invoice Date";
	$fieldToolTipsbrcs_report["English"]["invoice_date"] = "";
	$fieldLabelsbrcs_report["English"]["custom_no"] = "Custom No";
	$fieldToolTipsbrcs_report["English"]["custom_no"] = "";
	$fieldLabelsbrcs_report["English"]["custom_date"] = "Custom Date";
	$fieldToolTipsbrcs_report["English"]["custom_date"] = "";
	$fieldLabelsbrcs_report["English"]["description"] = "Description";
	$fieldToolTipsbrcs_report["English"]["description"] = "";
	$fieldLabelsbrcs_report["English"]["blrawb_no"] = "Blrawb No";
	$fieldToolTipsbrcs_report["English"]["blrawb_no"] = "";
	$fieldLabelsbrcs_report["English"]["blrawb_date"] = "Blrawb Date";
	$fieldToolTipsbrcs_report["English"]["blrawb_date"] = "";
	$fieldLabelsbrcs_report["English"]["country_id"] = "Country Id";
	$fieldToolTipsbrcs_report["English"]["country_id"] = "";
	$fieldLabelsbrcs_report["English"]["bill_amount"] = "Bill Amount";
	$fieldToolTipsbrcs_report["English"]["bill_amount"] = "";
	$fieldLabelsbrcs_report["English"]["currency_id"] = "Currency";
	$fieldToolTipsbrcs_report["English"]["currency_id"] = "";
	$fieldLabelsbrcs_report["English"]["freight_amount"] = "Freight Amount";
	$fieldToolTipsbrcs_report["English"]["freight_amount"] = "";
	$fieldLabelsbrcs_report["English"]["insurance_amount"] = "Insurance Amount";
	$fieldToolTipsbrcs_report["English"]["insurance_amount"] = "";
	$fieldLabelsbrcs_report["English"]["freely_convertable"] = "Freely Convertable";
	$fieldToolTipsbrcs_report["English"]["freely_convertable"] = "";
	$fieldLabelsbrcs_report["English"]["fob"] = "Fob";
	$fieldToolTipsbrcs_report["English"]["fob"] = "";
	$fieldLabelsbrcs_report["English"]["realisation_date"] = "Realisation Date";
	$fieldToolTipsbrcs_report["English"]["realisation_date"] = "";
	$fieldLabelsbrcs_report["English"]["sdf_form_no"] = "Sdf Form No";
	$fieldToolTipsbrcs_report["English"]["sdf_form_no"] = "";
	$fieldLabelsbrcs_report["English"]["remarks"] = "Remarks";
	$fieldToolTipsbrcs_report["English"]["remarks"] = "";
	if (count($fieldToolTipsbrcs_report["English"])){
		$tdatabrcs_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["bank_id"] = "Bank Id";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["bank_id"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["account_id"] = "Account Id";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["account_id"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["ra_id"] = "Ra Id";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["ra_id"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["signature"] = "Signature";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["signature"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["designation"] = "Designation";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["designation"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["office_address"] = "Office Address";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["office_address"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["residential_address"] = "Residential Address";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["residential_address"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["place"] = "Place";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["place"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["brc_date"] = "Brc Date";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["brc_date"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["invoice_no"] = "Invoice No";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["invoice_no"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["invoice_date"] = "Invoice Date";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["invoice_date"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["custom_no"] = "Custom No";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["custom_no"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["custom_date"] = "Custom Date";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["custom_date"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["description"] = "Description";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["description"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["blrawb_no"] = "Blrawb No";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["blrawb_no"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["blrawb_date"] = "Blrawb Date";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["blrawb_date"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["country_id"] = "Country Id";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["country_id"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["bill_amount"] = "Bill Amount";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["bill_amount"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["currency_id"] = "Currency Id";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["currency_id"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["freight_amount"] = "Freight Amount";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["freight_amount"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["insurance_amount"] = "Insurance Amount";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["insurance_amount"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["freely_convertable"] = "Freely Convertable";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["freely_convertable"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["fob"] = "Fob";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["fob"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["realisation_date"] = "Realisation Date";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["realisation_date"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["sdf_form_no"] = "Sdf Form No";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["sdf_form_no"] = "";
	$fieldLabelsbrcs_report["Chinese (Hong Kong S.A.R.)"]["remarks"] = "Remarks";
	$fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"]["remarks"] = "";
	if (count($fieldToolTipsbrcs_report["Chinese (Hong Kong S.A.R.)"])){
		$tdatabrcs_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]=array();
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]=array();
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["bank_id"] = "Bank Id";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["bank_id"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["account_id"] = "Account Id";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["account_id"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["ra_id"] = "Ra Id";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["ra_id"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["signature"] = "Signature";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["signature"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["designation"] = "Designation";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["designation"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["office_address"] = "Office Address";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["office_address"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["residential_address"] = "Residential Address";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["residential_address"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["place"] = "Place";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["place"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["brc_date"] = "Brc Date";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["brc_date"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["invoice_no"] = "Invoice No";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["invoice_no"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["invoice_date"] = "Invoice Date";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["invoice_date"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["custom_no"] = "Custom No";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["custom_no"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["custom_date"] = "Custom Date";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["custom_date"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["description"] = "Description";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["description"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["blrawb_no"] = "Blrawb No";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["blrawb_no"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["blrawb_date"] = "Blrawb Date";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["blrawb_date"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["country_id"] = "Country Id";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["country_id"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["bill_amount"] = "Bill Amount";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["bill_amount"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["currency_id"] = "Currency";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["currency_id"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["freight_amount"] = "Freight Amount";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["freight_amount"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["insurance_amount"] = "Insurance Amount";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["insurance_amount"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["freely_convertable"] = "Freely Convertable";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["freely_convertable"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["fob"] = "Fob";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["fob"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["realisation_date"] = "Realisation Date";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["realisation_date"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["sdf_form_no"] = "Sdf Form No";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["sdf_form_no"] = "";
	$fieldLabelsbrcs_report["Chinese (Taiwan)"]["remarks"] = "Remarks";
	$fieldToolTipsbrcs_report["Chinese (Taiwan)"]["remarks"] = "";
	if (count($fieldToolTipsbrcs_report["Chinese (Taiwan)"])){
		$tdatabrcs_report[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsbrcs_report["French"]=array();
	$fieldToolTipsbrcs_report["French"]=array();
	$fieldLabelsbrcs_report["French"]["id"] = "Id";
	$fieldToolTipsbrcs_report["French"]["id"] = "";
	$fieldLabelsbrcs_report["French"]["bank_id"] = "Bank Id";
	$fieldToolTipsbrcs_report["French"]["bank_id"] = "";
	$fieldLabelsbrcs_report["French"]["account_id"] = "Account Id";
	$fieldToolTipsbrcs_report["French"]["account_id"] = "";
	$fieldLabelsbrcs_report["French"]["ra_id"] = "Ra Id";
	$fieldToolTipsbrcs_report["French"]["ra_id"] = "";
	$fieldLabelsbrcs_report["French"]["signature"] = "Signature";
	$fieldToolTipsbrcs_report["French"]["signature"] = "";
	$fieldLabelsbrcs_report["French"]["designation"] = "Designation";
	$fieldToolTipsbrcs_report["French"]["designation"] = "";
	$fieldLabelsbrcs_report["French"]["office_address"] = "Office Address";
	$fieldToolTipsbrcs_report["French"]["office_address"] = "";
	$fieldLabelsbrcs_report["French"]["residential_address"] = "Residential Address";
	$fieldToolTipsbrcs_report["French"]["residential_address"] = "";
	$fieldLabelsbrcs_report["French"]["place"] = "Place";
	$fieldToolTipsbrcs_report["French"]["place"] = "";
	$fieldLabelsbrcs_report["French"]["brc_date"] = "Brc Date";
	$fieldToolTipsbrcs_report["French"]["brc_date"] = "";
	$fieldLabelsbrcs_report["French"]["invoice_no"] = "Invoice No";
	$fieldToolTipsbrcs_report["French"]["invoice_no"] = "";
	$fieldLabelsbrcs_report["French"]["invoice_date"] = "Invoice Date";
	$fieldToolTipsbrcs_report["French"]["invoice_date"] = "";
	$fieldLabelsbrcs_report["French"]["custom_no"] = "Custom No";
	$fieldToolTipsbrcs_report["French"]["custom_no"] = "";
	$fieldLabelsbrcs_report["French"]["custom_date"] = "Custom Date";
	$fieldToolTipsbrcs_report["French"]["custom_date"] = "";
	$fieldLabelsbrcs_report["French"]["description"] = "Description";
	$fieldToolTipsbrcs_report["French"]["description"] = "";
	$fieldLabelsbrcs_report["French"]["blrawb_no"] = "Blrawb No";
	$fieldToolTipsbrcs_report["French"]["blrawb_no"] = "";
	$fieldLabelsbrcs_report["French"]["blrawb_date"] = "Blrawb Date";
	$fieldToolTipsbrcs_report["French"]["blrawb_date"] = "";
	$fieldLabelsbrcs_report["French"]["country_id"] = "Country Id";
	$fieldToolTipsbrcs_report["French"]["country_id"] = "";
	$fieldLabelsbrcs_report["French"]["bill_amount"] = "Bill Amount";
	$fieldToolTipsbrcs_report["French"]["bill_amount"] = "";
	$fieldLabelsbrcs_report["French"]["currency_id"] = "Currency Id";
	$fieldToolTipsbrcs_report["French"]["currency_id"] = "";
	$fieldLabelsbrcs_report["French"]["freight_amount"] = "Freight Amount";
	$fieldToolTipsbrcs_report["French"]["freight_amount"] = "";
	$fieldLabelsbrcs_report["French"]["insurance_amount"] = "Insurance Amount";
	$fieldToolTipsbrcs_report["French"]["insurance_amount"] = "";
	$fieldLabelsbrcs_report["French"]["freely_convertable"] = "Freely Convertable";
	$fieldToolTipsbrcs_report["French"]["freely_convertable"] = "";
	$fieldLabelsbrcs_report["French"]["fob"] = "Fob";
	$fieldToolTipsbrcs_report["French"]["fob"] = "";
	$fieldLabelsbrcs_report["French"]["realisation_date"] = "Realisation Date";
	$fieldToolTipsbrcs_report["French"]["realisation_date"] = "";
	$fieldLabelsbrcs_report["French"]["sdf_form_no"] = "Sdf Form No";
	$fieldToolTipsbrcs_report["French"]["sdf_form_no"] = "";
	$fieldLabelsbrcs_report["French"]["remarks"] = "Remarks";
	$fieldToolTipsbrcs_report["French"]["remarks"] = "";
	if (count($fieldToolTipsbrcs_report["French"])){
		$tdatabrcs_report[".isUseToolTips"]=true;
	}
}


	
	$tdatabrcs_report[".NCSearch"]=true;

	

$tdatabrcs_report[".shortTableName"] = "brcs_report";
$tdatabrcs_report[".nSecOptions"] = 0;
$tdatabrcs_report[".recsPerRowList"] = 1;	
$tdatabrcs_report[".tableGroupBy"] = "0";
$tdatabrcs_report[".mainTableOwnerID"] = "";
$tdatabrcs_report[".moveNext"] = 1;




$tdatabrcs_report[".showAddInPopup"] = false;

$tdatabrcs_report[".showEditInPopup"] = false;

$tdatabrcs_report[".showViewInPopup"] = false;


$tdatabrcs_report[".fieldsForRegister"] = array();

$tdatabrcs_report[".listAjax"] = false;

	$tdatabrcs_report[".audit"] = false;

	$tdatabrcs_report[".locking"] = false;
	
$tdatabrcs_report[".listIcons"] = true;
$tdatabrcs_report[".edit"] = true;
$tdatabrcs_report[".inlineEdit"] = true;
$tdatabrcs_report[".view"] = true;

$tdatabrcs_report[".exportTo"] = true;

$tdatabrcs_report[".printFriendly"] = true;

$tdatabrcs_report[".delete"] = true;

$tdatabrcs_report[".showSimpleSearchOptions"] = false;

$tdatabrcs_report[".showSearchPanel"] = true;


$tdatabrcs_report[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatabrcs_report[".addPageEvents"] = false;

$tdatabrcs_report[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatabrcs_report[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdatabrcs_report[".isUseTimeForSearch"] = false;

$tdatabrcs_report[".isUseiBox"] = false;



$tdatabrcs_report[".isUseInlineJs"] = $tdatabrcs_report[".isUseInlineAdd"] || $tdatabrcs_report[".isUseInlineEdit"];

$tdatabrcs_report[".allSearchFields"] = array();

$tdatabrcs_report[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "id";	
}
$tdatabrcs_report[".globSearchFields"][] = "bank_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bank_id", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "bank_id";	
}
$tdatabrcs_report[".globSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "account_id";	
}
$tdatabrcs_report[".globSearchFields"][] = "ra_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ra_id", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "ra_id";	
}
$tdatabrcs_report[".globSearchFields"][] = "signature";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("signature", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "signature";	
}
$tdatabrcs_report[".globSearchFields"][] = "designation";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("designation", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "designation";	
}
$tdatabrcs_report[".globSearchFields"][] = "office_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("office_address", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "office_address";	
}
$tdatabrcs_report[".globSearchFields"][] = "residential_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("residential_address", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "residential_address";	
}
$tdatabrcs_report[".globSearchFields"][] = "place";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("place", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "place";	
}
$tdatabrcs_report[".globSearchFields"][] = "brc_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("brc_date", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "brc_date";	
}
$tdatabrcs_report[".globSearchFields"][] = "invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("invoice_no", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "invoice_no";	
}
$tdatabrcs_report[".globSearchFields"][] = "invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("invoice_date", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "invoice_date";	
}
$tdatabrcs_report[".globSearchFields"][] = "custom_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("custom_no", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "custom_no";	
}
$tdatabrcs_report[".globSearchFields"][] = "custom_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("custom_date", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "custom_date";	
}
$tdatabrcs_report[".globSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "description";	
}
$tdatabrcs_report[".globSearchFields"][] = "blrawb_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("blrawb_no", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "blrawb_no";	
}
$tdatabrcs_report[".globSearchFields"][] = "blrawb_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("blrawb_date", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "blrawb_date";	
}
$tdatabrcs_report[".globSearchFields"][] = "country_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("country_id", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "country_id";	
}
$tdatabrcs_report[".globSearchFields"][] = "bill_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bill_amount", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "bill_amount";	
}
$tdatabrcs_report[".globSearchFields"][] = "currency_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("currency_id", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "currency_id";	
}
$tdatabrcs_report[".globSearchFields"][] = "freight_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("freight_amount", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "freight_amount";	
}
$tdatabrcs_report[".globSearchFields"][] = "insurance_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("insurance_amount", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "insurance_amount";	
}
$tdatabrcs_report[".globSearchFields"][] = "freely_convertable";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("freely_convertable", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "freely_convertable";	
}
$tdatabrcs_report[".globSearchFields"][] = "fob";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fob", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "fob";	
}
$tdatabrcs_report[".globSearchFields"][] = "realisation_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("realisation_date", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "realisation_date";	
}
$tdatabrcs_report[".globSearchFields"][] = "sdf_form_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("sdf_form_no", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "sdf_form_no";	
}
$tdatabrcs_report[".globSearchFields"][] = "remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("remarks", $tdatabrcs_report[".allSearchFields"]))
{
	$tdatabrcs_report[".allSearchFields"][] = "remarks";	
}


$tdatabrcs_report[".googleLikeFields"][] = "id";
$tdatabrcs_report[".googleLikeFields"][] = "bank_id";
$tdatabrcs_report[".googleLikeFields"][] = "account_id";
$tdatabrcs_report[".googleLikeFields"][] = "ra_id";
$tdatabrcs_report[".googleLikeFields"][] = "signature";
$tdatabrcs_report[".googleLikeFields"][] = "designation";
$tdatabrcs_report[".googleLikeFields"][] = "office_address";
$tdatabrcs_report[".googleLikeFields"][] = "residential_address";
$tdatabrcs_report[".googleLikeFields"][] = "place";
$tdatabrcs_report[".googleLikeFields"][] = "brc_date";
$tdatabrcs_report[".googleLikeFields"][] = "invoice_no";
$tdatabrcs_report[".googleLikeFields"][] = "invoice_date";
$tdatabrcs_report[".googleLikeFields"][] = "custom_no";
$tdatabrcs_report[".googleLikeFields"][] = "custom_date";
$tdatabrcs_report[".googleLikeFields"][] = "description";
$tdatabrcs_report[".googleLikeFields"][] = "blrawb_no";
$tdatabrcs_report[".googleLikeFields"][] = "blrawb_date";
$tdatabrcs_report[".googleLikeFields"][] = "country_id";
$tdatabrcs_report[".googleLikeFields"][] = "bill_amount";
$tdatabrcs_report[".googleLikeFields"][] = "currency_id";
$tdatabrcs_report[".googleLikeFields"][] = "freight_amount";
$tdatabrcs_report[".googleLikeFields"][] = "insurance_amount";
$tdatabrcs_report[".googleLikeFields"][] = "freely_convertable";
$tdatabrcs_report[".googleLikeFields"][] = "fob";
$tdatabrcs_report[".googleLikeFields"][] = "realisation_date";
$tdatabrcs_report[".googleLikeFields"][] = "sdf_form_no";
$tdatabrcs_report[".googleLikeFields"][] = "remarks";



$tdatabrcs_report[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "id";	
}
$tdatabrcs_report[".advSearchFields"][] = "bank_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bank_id", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "bank_id";	
}
$tdatabrcs_report[".advSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "account_id";	
}
$tdatabrcs_report[".advSearchFields"][] = "ra_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ra_id", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "ra_id";	
}
$tdatabrcs_report[".advSearchFields"][] = "signature";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("signature", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "signature";	
}
$tdatabrcs_report[".advSearchFields"][] = "designation";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("designation", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "designation";	
}
$tdatabrcs_report[".advSearchFields"][] = "office_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("office_address", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "office_address";	
}
$tdatabrcs_report[".advSearchFields"][] = "residential_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("residential_address", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "residential_address";	
}
$tdatabrcs_report[".advSearchFields"][] = "place";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("place", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "place";	
}
$tdatabrcs_report[".advSearchFields"][] = "brc_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("brc_date", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "brc_date";	
}
$tdatabrcs_report[".advSearchFields"][] = "invoice_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("invoice_no", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "invoice_no";	
}
$tdatabrcs_report[".advSearchFields"][] = "invoice_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("invoice_date", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "invoice_date";	
}
$tdatabrcs_report[".advSearchFields"][] = "custom_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("custom_no", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "custom_no";	
}
$tdatabrcs_report[".advSearchFields"][] = "custom_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("custom_date", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "custom_date";	
}
$tdatabrcs_report[".advSearchFields"][] = "description";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("description", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "description";	
}
$tdatabrcs_report[".advSearchFields"][] = "blrawb_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("blrawb_no", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "blrawb_no";	
}
$tdatabrcs_report[".advSearchFields"][] = "blrawb_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("blrawb_date", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "blrawb_date";	
}
$tdatabrcs_report[".advSearchFields"][] = "country_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("country_id", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "country_id";	
}
$tdatabrcs_report[".advSearchFields"][] = "bill_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bill_amount", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "bill_amount";	
}
$tdatabrcs_report[".advSearchFields"][] = "currency_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("currency_id", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "currency_id";	
}
$tdatabrcs_report[".advSearchFields"][] = "freight_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("freight_amount", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "freight_amount";	
}
$tdatabrcs_report[".advSearchFields"][] = "insurance_amount";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("insurance_amount", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "insurance_amount";	
}
$tdatabrcs_report[".advSearchFields"][] = "freely_convertable";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("freely_convertable", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "freely_convertable";	
}
$tdatabrcs_report[".advSearchFields"][] = "fob";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fob", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "fob";	
}
$tdatabrcs_report[".advSearchFields"][] = "realisation_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("realisation_date", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "realisation_date";	
}
$tdatabrcs_report[".advSearchFields"][] = "sdf_form_no";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("sdf_form_no", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "sdf_form_no";	
}
$tdatabrcs_report[".advSearchFields"][] = "remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("remarks", $tdatabrcs_report[".allSearchFields"])) 
{
	$tdatabrcs_report[".allSearchFields"][] = "remarks";	
}

$tdatabrcs_report[".isTableType"] = "report";


	

$tdatabrcs_report[".isDisplayLoading"] = true;

$tdatabrcs_report[".isResizeColumns"] = false;






$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatabrcs_report[".strOrderBy"] = $gstrOrderBy;
	
$tdatabrcs_report[".orderindexes"] = array();

$tdatabrcs_report[".sqlHead"] = "SELECT brcs.id,  brcs.bank_id,  brcs.account_id,  brcs.ra_id,  brcs.signature,  brcs.designation,  brcs.office_address,  brcs.residential_address,  brcs.place,  brcs.brc_date,  brc_items.invoice_no,  brc_items.invoice_date,  brc_items.custom_no,  brc_items.custom_date,  brc_items.description,  brc_items.blrawb_no,  brc_items.blrawb_date,  brc_items.country_id,  brc_items.bill_amount,  brc_items.currency_id,  brc_items.freight_amount,  brc_items.insurance_amount,  brc_items.freely_convertable,  brc_items.fob,  brc_items.realisation_date,  brc_items.sdf_form_no,  brc_items.remarks";
$tdatabrcs_report[".sqlFrom"] = "FROM brcs  INNER JOIN brc_items ON brcs.id = brc_items.brc_id";
$tdatabrcs_report[".sqlWhereExpr"] = "";
$tdatabrcs_report[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatabrcs_report[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatabrcs_report[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatabrcs_report[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "brcs.id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_report["id"]=$fdata;
//	bank_id
	$fdata = array();
	$fdata["strName"] = "bank_id";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Bank"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="";
				$fdata["LookupTable"]="";
	$fdata["LookupOrderBy"]="";
																			$fdata["SimpleAdd"]=true;
	
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bank_id";
	
		$fdata["FullName"]= "brcs.bank_id";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_report["bank_id"]=$fdata;
//	account_id
	$fdata = array();
	$fdata["strName"] = "account_id";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Account"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="";
				$fdata["LookupTable"]="";
	$fdata["LookupOrderBy"]="";
																			$fdata["SimpleAdd"]=true;
	
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_id";
	
		$fdata["FullName"]= "brcs.account_id";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_report["account_id"]=$fdata;
//	ra_id
	$fdata = array();
	$fdata["strName"] = "ra_id";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Regional Authority"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="";
				$fdata["LookupTable"]="";
	$fdata["LookupOrderBy"]="";
																			$fdata["SimpleAdd"]=true;
	
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ra_id";
	
		$fdata["FullName"]= "brcs.ra_id";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_report["ra_id"]=$fdata;
//	signature
	$fdata = array();
	$fdata["strName"] = "signature";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Signature"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "signature";
	
		$fdata["FullName"]= "brcs.signature";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_report["signature"]=$fdata;
//	designation
	$fdata = array();
	$fdata["strName"] = "designation";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Designation"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "designation";
	
		$fdata["FullName"]= "brcs.designation";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_report["designation"]=$fdata;
//	office_address
	$fdata = array();
	$fdata["strName"] = "office_address";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Office Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "office_address";
	
		$fdata["FullName"]= "brcs.office_address";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_report["office_address"]=$fdata;
//	residential_address
	$fdata = array();
	$fdata["strName"] = "residential_address";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Residential Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "residential_address";
	
		$fdata["FullName"]= "brcs.residential_address";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_report["residential_address"]=$fdata;
//	place
	$fdata = array();
	$fdata["strName"] = "place";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Place"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "place";
	
		$fdata["FullName"]= "brcs.place";
	
		
		
		
		
		
				$fdata["Index"]= 9;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_report["place"]=$fdata;
//	brc_date
	$fdata = array();
	$fdata["strName"] = "brc_date";
	$fdata["ownerTable"] = "brcs";
		$fdata["Label"]="Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "brc_date";
	
		$fdata["FullName"]= "brcs.brc_date";
	
		
		
		
		
		
				$fdata["Index"]= 10;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
		
		
		
		
			$tdatabrcs_report["brc_date"]=$fdata;
//	invoice_no
	$fdata = array();
	$fdata["strName"] = "invoice_no";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Invoice No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "invoice_no";
	
		$fdata["FullName"]= "brc_items.invoice_no";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["invoice_no"]=$fdata;
//	invoice_date
	$fdata = array();
	$fdata["strName"] = "invoice_date";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Invoice Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "invoice_date";
	
		$fdata["FullName"]= "brc_items.invoice_date";
	
		
		
		
		
		
				$fdata["Index"]= 12;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["invoice_date"]=$fdata;
//	custom_no
	$fdata = array();
	$fdata["strName"] = "custom_no";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Custom No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "custom_no";
	
		$fdata["FullName"]= "brc_items.custom_no";
	
		
		
		
		
		
				$fdata["Index"]= 13;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["custom_no"]=$fdata;
//	custom_date
	$fdata = array();
	$fdata["strName"] = "custom_date";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Custom Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "custom_date";
	
		$fdata["FullName"]= "brc_items.custom_date";
	
		
		
		
		
		
				$fdata["Index"]= 14;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["custom_date"]=$fdata;
//	description
	$fdata = array();
	$fdata["strName"] = "description";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Description"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "description";
	
		$fdata["FullName"]= "brc_items.description";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["description"]=$fdata;
//	blrawb_no
	$fdata = array();
	$fdata["strName"] = "blrawb_no";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Blrawb No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "blrawb_no";
	
		$fdata["FullName"]= "brc_items.blrawb_no";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["blrawb_no"]=$fdata;
//	blrawb_date
	$fdata = array();
	$fdata["strName"] = "blrawb_date";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Blrawb Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "blrawb_date";
	
		$fdata["FullName"]= "brc_items.blrawb_date";
	
		
		
		
		
		
				$fdata["Index"]= 17;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["blrawb_date"]=$fdata;
//	country_id
	$fdata = array();
	$fdata["strName"] = "country_id";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Country Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "country_id";
	
		$fdata["FullName"]= "brc_items.country_id";
	
		
		
		
		
		
				$fdata["Index"]= 18;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["country_id"]=$fdata;
//	bill_amount
	$fdata = array();
	$fdata["strName"] = "bill_amount";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Bill Amount"; 
	
		
		
	$fdata["FieldType"]= 14;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bill_amount";
	
		$fdata["FullName"]= "brc_items.bill_amount";
	
		
		
		
		
		
				$fdata["Index"]= 19;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["bill_amount"]=$fdata;
//	currency_id
	$fdata = array();
	$fdata["strName"] = "currency_id";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Currency"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "currency_id";
	
		$fdata["FullName"]= "brc_items.currency_id";
	
		
		
		
		
		
				$fdata["Index"]= 20;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["currency_id"]=$fdata;
//	freight_amount
	$fdata = array();
	$fdata["strName"] = "freight_amount";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Freight Amount"; 
	
		
		
	$fdata["FieldType"]= 14;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "freight_amount";
	
		$fdata["FullName"]= "brc_items.freight_amount";
	
		
		
		
		
		
				$fdata["Index"]= 21;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["freight_amount"]=$fdata;
//	insurance_amount
	$fdata = array();
	$fdata["strName"] = "insurance_amount";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Insurance Amount"; 
	
		
		
	$fdata["FieldType"]= 14;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "Number";
	
		
		
		
		$fdata["DecimalDigits"] = 2;
	
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "insurance_amount";
	
		$fdata["FullName"]= "brc_items.insurance_amount";
	
		
		
		
		
		
				$fdata["Index"]= 22;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["insurance_amount"]=$fdata;
//	freely_convertable
	$fdata = array();
	$fdata["strName"] = "freely_convertable";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Freely Convertable"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "freely_convertable";
	
		$fdata["FullName"]= "brc_items.freely_convertable";
	
		
		
		
		
		
				$fdata["Index"]= 23;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["freely_convertable"]=$fdata;
//	fob
	$fdata = array();
	$fdata["strName"] = "fob";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Fob"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "fob";
	
		$fdata["FullName"]= "brc_items.fob";
	
		
		
		
		
		
				$fdata["Index"]= 24;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["fob"]=$fdata;
//	realisation_date
	$fdata = array();
	$fdata["strName"] = "realisation_date";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Realisation Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "realisation_date";
	
		$fdata["FullName"]= "brc_items.realisation_date";
	
		
		
		
		
		
				$fdata["Index"]= 25;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["realisation_date"]=$fdata;
//	sdf_form_no
	$fdata = array();
	$fdata["strName"] = "sdf_form_no";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Sdf Form No"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "sdf_form_no";
	
		$fdata["FullName"]= "brc_items.sdf_form_no";
	
		
		
		
		
		
				$fdata["Index"]= 26;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["sdf_form_no"]=$fdata;
//	remarks
	$fdata = array();
	$fdata["strName"] = "remarks";
	$fdata["ownerTable"] = "brc_items";
		$fdata["Label"]="Remarks"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "remarks";
	
		$fdata["FullName"]= "brc_items.remarks";
	
		
		
		
		
		
				$fdata["Index"]= 27;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				
		
		
		
		
		
			$tdatabrcs_report["remarks"]=$fdata;

	
$tables_data["brcs_report"]=&$tdatabrcs_report;
$field_labels["brcs_report"] = &$fieldLabelsbrcs_report;
$fieldToolTips["brcs_report"] = &$fieldToolTipsbrcs_report;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["brcs_report"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["brcs_report"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto154=array();
$proto154["m_strHead"] = "SELECT";
$proto154["m_strFieldList"] = "brcs.id,  brcs.bank_id,  brcs.account_id,  brcs.ra_id,  brcs.signature,  brcs.designation,  brcs.office_address,  brcs.residential_address,  brcs.place,  brcs.brc_date,  brc_items.invoice_no,  brc_items.invoice_date,  brc_items.custom_no,  brc_items.custom_date,  brc_items.description,  brc_items.blrawb_no,  brc_items.blrawb_date,  brc_items.country_id,  brc_items.bill_amount,  brc_items.currency_id,  brc_items.freight_amount,  brc_items.insurance_amount,  brc_items.freely_convertable,  brc_items.fob,  brc_items.realisation_date,  brc_items.sdf_form_no,  brc_items.remarks";
$proto154["m_strFrom"] = "FROM brcs  INNER JOIN brc_items ON brcs.id = brc_items.brc_id";
$proto154["m_strWhere"] = "";
$proto154["m_strOrderBy"] = "";
$proto154["m_strTail"] = "";
$proto155=array();
$proto155["m_sql"] = "";
$proto155["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto155["m_column"]=$obj;
$proto155["m_contained"] = array();
$proto155["m_strCase"] = "";
$proto155["m_havingmode"] = "0";
$proto155["m_inBrackets"] = "0";
$proto155["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto155);

$proto154["m_where"] = $obj;
$proto157=array();
$proto157["m_sql"] = "";
$proto157["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto157["m_column"]=$obj;
$proto157["m_contained"] = array();
$proto157["m_strCase"] = "";
$proto157["m_havingmode"] = "0";
$proto157["m_inBrackets"] = "0";
$proto157["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto157);

$proto154["m_having"] = $obj;
$proto154["m_fieldlist"] = array();
						$proto159=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "brcs"
));

$proto159["m_expr"]=$obj;
$proto159["m_alias"] = "";
$obj = new SQLFieldListItem($proto159);

$proto154["m_fieldlist"][]=$obj;
						$proto161=array();
			$obj = new SQLField(array(
	"m_strName" => "bank_id",
	"m_strTable" => "brcs"
));

$proto161["m_expr"]=$obj;
$proto161["m_alias"] = "";
$obj = new SQLFieldListItem($proto161);

$proto154["m_fieldlist"][]=$obj;
						$proto163=array();
			$obj = new SQLField(array(
	"m_strName" => "account_id",
	"m_strTable" => "brcs"
));

$proto163["m_expr"]=$obj;
$proto163["m_alias"] = "";
$obj = new SQLFieldListItem($proto163);

$proto154["m_fieldlist"][]=$obj;
						$proto165=array();
			$obj = new SQLField(array(
	"m_strName" => "ra_id",
	"m_strTable" => "brcs"
));

$proto165["m_expr"]=$obj;
$proto165["m_alias"] = "";
$obj = new SQLFieldListItem($proto165);

$proto154["m_fieldlist"][]=$obj;
						$proto167=array();
			$obj = new SQLField(array(
	"m_strName" => "signature",
	"m_strTable" => "brcs"
));

$proto167["m_expr"]=$obj;
$proto167["m_alias"] = "";
$obj = new SQLFieldListItem($proto167);

$proto154["m_fieldlist"][]=$obj;
						$proto169=array();
			$obj = new SQLField(array(
	"m_strName" => "designation",
	"m_strTable" => "brcs"
));

$proto169["m_expr"]=$obj;
$proto169["m_alias"] = "";
$obj = new SQLFieldListItem($proto169);

$proto154["m_fieldlist"][]=$obj;
						$proto171=array();
			$obj = new SQLField(array(
	"m_strName" => "office_address",
	"m_strTable" => "brcs"
));

$proto171["m_expr"]=$obj;
$proto171["m_alias"] = "";
$obj = new SQLFieldListItem($proto171);

$proto154["m_fieldlist"][]=$obj;
						$proto173=array();
			$obj = new SQLField(array(
	"m_strName" => "residential_address",
	"m_strTable" => "brcs"
));

$proto173["m_expr"]=$obj;
$proto173["m_alias"] = "";
$obj = new SQLFieldListItem($proto173);

$proto154["m_fieldlist"][]=$obj;
						$proto175=array();
			$obj = new SQLField(array(
	"m_strName" => "place",
	"m_strTable" => "brcs"
));

$proto175["m_expr"]=$obj;
$proto175["m_alias"] = "";
$obj = new SQLFieldListItem($proto175);

$proto154["m_fieldlist"][]=$obj;
						$proto177=array();
			$obj = new SQLField(array(
	"m_strName" => "brc_date",
	"m_strTable" => "brcs"
));

$proto177["m_expr"]=$obj;
$proto177["m_alias"] = "";
$obj = new SQLFieldListItem($proto177);

$proto154["m_fieldlist"][]=$obj;
						$proto179=array();
			$obj = new SQLField(array(
	"m_strName" => "invoice_no",
	"m_strTable" => "brc_items"
));

$proto179["m_expr"]=$obj;
$proto179["m_alias"] = "";
$obj = new SQLFieldListItem($proto179);

$proto154["m_fieldlist"][]=$obj;
						$proto181=array();
			$obj = new SQLField(array(
	"m_strName" => "invoice_date",
	"m_strTable" => "brc_items"
));

$proto181["m_expr"]=$obj;
$proto181["m_alias"] = "";
$obj = new SQLFieldListItem($proto181);

$proto154["m_fieldlist"][]=$obj;
						$proto183=array();
			$obj = new SQLField(array(
	"m_strName" => "custom_no",
	"m_strTable" => "brc_items"
));

$proto183["m_expr"]=$obj;
$proto183["m_alias"] = "";
$obj = new SQLFieldListItem($proto183);

$proto154["m_fieldlist"][]=$obj;
						$proto185=array();
			$obj = new SQLField(array(
	"m_strName" => "custom_date",
	"m_strTable" => "brc_items"
));

$proto185["m_expr"]=$obj;
$proto185["m_alias"] = "";
$obj = new SQLFieldListItem($proto185);

$proto154["m_fieldlist"][]=$obj;
						$proto187=array();
			$obj = new SQLField(array(
	"m_strName" => "description",
	"m_strTable" => "brc_items"
));

$proto187["m_expr"]=$obj;
$proto187["m_alias"] = "";
$obj = new SQLFieldListItem($proto187);

$proto154["m_fieldlist"][]=$obj;
						$proto189=array();
			$obj = new SQLField(array(
	"m_strName" => "blrawb_no",
	"m_strTable" => "brc_items"
));

$proto189["m_expr"]=$obj;
$proto189["m_alias"] = "";
$obj = new SQLFieldListItem($proto189);

$proto154["m_fieldlist"][]=$obj;
						$proto191=array();
			$obj = new SQLField(array(
	"m_strName" => "blrawb_date",
	"m_strTable" => "brc_items"
));

$proto191["m_expr"]=$obj;
$proto191["m_alias"] = "";
$obj = new SQLFieldListItem($proto191);

$proto154["m_fieldlist"][]=$obj;
						$proto193=array();
			$obj = new SQLField(array(
	"m_strName" => "country_id",
	"m_strTable" => "brc_items"
));

$proto193["m_expr"]=$obj;
$proto193["m_alias"] = "";
$obj = new SQLFieldListItem($proto193);

$proto154["m_fieldlist"][]=$obj;
						$proto195=array();
			$obj = new SQLField(array(
	"m_strName" => "bill_amount",
	"m_strTable" => "brc_items"
));

$proto195["m_expr"]=$obj;
$proto195["m_alias"] = "";
$obj = new SQLFieldListItem($proto195);

$proto154["m_fieldlist"][]=$obj;
						$proto197=array();
			$obj = new SQLField(array(
	"m_strName" => "currency_id",
	"m_strTable" => "brc_items"
));

$proto197["m_expr"]=$obj;
$proto197["m_alias"] = "";
$obj = new SQLFieldListItem($proto197);

$proto154["m_fieldlist"][]=$obj;
						$proto199=array();
			$obj = new SQLField(array(
	"m_strName" => "freight_amount",
	"m_strTable" => "brc_items"
));

$proto199["m_expr"]=$obj;
$proto199["m_alias"] = "";
$obj = new SQLFieldListItem($proto199);

$proto154["m_fieldlist"][]=$obj;
						$proto201=array();
			$obj = new SQLField(array(
	"m_strName" => "insurance_amount",
	"m_strTable" => "brc_items"
));

$proto201["m_expr"]=$obj;
$proto201["m_alias"] = "";
$obj = new SQLFieldListItem($proto201);

$proto154["m_fieldlist"][]=$obj;
						$proto203=array();
			$obj = new SQLField(array(
	"m_strName" => "freely_convertable",
	"m_strTable" => "brc_items"
));

$proto203["m_expr"]=$obj;
$proto203["m_alias"] = "";
$obj = new SQLFieldListItem($proto203);

$proto154["m_fieldlist"][]=$obj;
						$proto205=array();
			$obj = new SQLField(array(
	"m_strName" => "fob",
	"m_strTable" => "brc_items"
));

$proto205["m_expr"]=$obj;
$proto205["m_alias"] = "";
$obj = new SQLFieldListItem($proto205);

$proto154["m_fieldlist"][]=$obj;
						$proto207=array();
			$obj = new SQLField(array(
	"m_strName" => "realisation_date",
	"m_strTable" => "brc_items"
));

$proto207["m_expr"]=$obj;
$proto207["m_alias"] = "";
$obj = new SQLFieldListItem($proto207);

$proto154["m_fieldlist"][]=$obj;
						$proto209=array();
			$obj = new SQLField(array(
	"m_strName" => "sdf_form_no",
	"m_strTable" => "brc_items"
));

$proto209["m_expr"]=$obj;
$proto209["m_alias"] = "";
$obj = new SQLFieldListItem($proto209);

$proto154["m_fieldlist"][]=$obj;
						$proto211=array();
			$obj = new SQLField(array(
	"m_strName" => "remarks",
	"m_strTable" => "brc_items"
));

$proto211["m_expr"]=$obj;
$proto211["m_alias"] = "";
$obj = new SQLFieldListItem($proto211);

$proto154["m_fieldlist"][]=$obj;
$proto154["m_fromlist"] = array();
												$proto213=array();
$proto213["m_link"] = "SQLL_MAIN";
			$proto214=array();
$proto214["m_strName"] = "brcs";
$proto214["m_columns"] = array();
$proto214["m_columns"][] = "id";
$proto214["m_columns"][] = "bank_id";
$proto214["m_columns"][] = "account_id";
$proto214["m_columns"][] = "ra_id";
$proto214["m_columns"][] = "signature";
$proto214["m_columns"][] = "designation";
$proto214["m_columns"][] = "office_address";
$proto214["m_columns"][] = "residential_address";
$proto214["m_columns"][] = "place";
$proto214["m_columns"][] = "brc_date";
$proto214["m_columns"][] = "ref_id";
$obj = new SQLTable($proto214);

$proto213["m_table"] = $obj;
$proto213["m_alias"] = "";
$proto215=array();
$proto215["m_sql"] = "";
$proto215["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto215["m_column"]=$obj;
$proto215["m_contained"] = array();
$proto215["m_strCase"] = "";
$proto215["m_havingmode"] = "0";
$proto215["m_inBrackets"] = "0";
$proto215["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto215);

$proto213["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto213);

$proto154["m_fromlist"][]=$obj;
												$proto217=array();
$proto217["m_link"] = "SQLL_INNERJOIN";
			$proto218=array();
$proto218["m_strName"] = "brc_items";
$proto218["m_columns"] = array();
$proto218["m_columns"][] = "id";
$proto218["m_columns"][] = "brc_id";
$proto218["m_columns"][] = "invoice_no";
$proto218["m_columns"][] = "invoice_date";
$proto218["m_columns"][] = "custom_no";
$proto218["m_columns"][] = "custom_date";
$proto218["m_columns"][] = "description";
$proto218["m_columns"][] = "blrawb_no";
$proto218["m_columns"][] = "blrawb_date";
$proto218["m_columns"][] = "country_id";
$proto218["m_columns"][] = "bill_amount";
$proto218["m_columns"][] = "currency_id";
$proto218["m_columns"][] = "freight_amount";
$proto218["m_columns"][] = "insurance_amount";
$proto218["m_columns"][] = "freely_convertable";
$proto218["m_columns"][] = "fob";
$proto218["m_columns"][] = "realisation_date";
$proto218["m_columns"][] = "sdf_form_no";
$proto218["m_columns"][] = "remarks";
$obj = new SQLTable($proto218);

$proto217["m_table"] = $obj;
$proto217["m_alias"] = "";
$proto219=array();
$proto219["m_sql"] = "brcs.id = brc_items.brc_id";
$proto219["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "brcs"
));

$proto219["m_column"]=$obj;
$proto219["m_contained"] = array();
$proto219["m_strCase"] = "= brc_items.brc_id";
$proto219["m_havingmode"] = "0";
$proto219["m_inBrackets"] = "0";
$proto219["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto219);

$proto217["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto217);

$proto154["m_fromlist"][]=$obj;
$proto154["m_groupby"] = array();
$proto154["m_orderby"] = array();
$obj = new SQLQuery($proto154);

$queryData_brcs_report = $obj;
$tdatabrcs_report[".sqlquery"] = $queryData_brcs_report;

$tableEvents["brcs_report"] = new eventsBase;

?>
